const mongoose = require('mongoose')
module.exports = new mongoose.Schema({
  // 广告标题
  advTitle: {
    type: String,
    required: true,
  },
  // 广告图片
  advAvatar: {
    type: String,
    required: true,
  },
  // 广告分类
  advCategory: {
    type: String,
    required: true,
  },
  // 广告链接
  advLink: {
    type: String,
    required: true,
  },
  // 广告添加时间
  advInsertDate: {
    type: String,
    default: Date.now(),
  },
  // 广告修改时间
  advMotifyDate: {
    type: String,
    default: Date.now(),
  },
})
